package com.shop.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author 小🌤
 * @since 2021-05-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Shopringcart implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 注解
     */
    @TableId(value = "sc_id", type = IdType.AUTO)
    private Integer scId;

    /**
     * 用户id
     */
    private Integer urId;

    /**
     * 商品id
     */
    private Integer cmId;

    /**
     * 商品数量
     */
    private Integer scTotal;

    /**
     * 商品总价格
     */
    private Double scTotalPrice;

    /**
     * 颜色
     */
    private String scColor;

    /**
     * 配置
     */
    private String scConfig;

    /**
     * 商品
     */
    @TableField(exist = false)
    private Commodity commodity;


}
